/**
 * }
 * @author florian
 */
PictureManagAir.TagTreePanel = Ext.extend(Ext.tree.TreePanel, {
    initComponent: function(){
        Ext.apply(this, {
            tools: [{
                id: 'refresh',
                handler: function(e, button, tree){
                    tree.getLoader().load(tree.root);
                },
                scope: this
            }],
            selModel: new Ext.tree.MultiSelectionModel(),
            rootVisible: false,
            root: new Ext.tree.AsyncTreeNode({
                id: '__tags_root__'
                ,children: ['Tags']
            }),
            loader: new Ext.sql.TreeLoader()
        });
        PictureManagAir.TagTreePanel.superclass.initComponent.apply(this, arguments);
    }
}); // e/o extend
Ext.reg('tagtreepanel', PictureManagAir.TagTreePanel);
